package com.dong.aop.aspect;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * description
 *
 * @author Administrator 2021/09/09 13:38
 */
@Configuration
@EnableAspectJAutoProxy(proxyTargetClass = true)
public class AppConfig {

//    @Bean
//    public MyAspectService myService(){
//        return new MyAspectService();
//    }
//
//    @Bean
//    public MyAspect myAspect(){
//        return new MyAspect();
//    }

    @Bean
    public static MyServiceAspect myServiceAspect(){
        return new MyServiceAspect();
    }
}
